<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<style>
    body {
        margin: 0;
    }
</style>
<div id="sandbox-demo9"></div>

<!--<script src="https://unpkg.com/mini-sandbox@0.3.17"></script>-->
<!--<script src="https://unpkg.com/mini-sandbox@0.3.17/dist/vue-loader.js"></script>-->

<!-- <script src="./dist/index.umd.js"></script>
<script src="./dist/vue-loader.js"></script> -->

<script type="text/javascript">
    import  MiniSandbox from 'mini-sandbox'
    import SandboxVueLoader from "mini-sandbox/dist/src/loaders/vue-loader";
    new MiniSandbox({
        el: '#sandbox-demo9',
        files: {
            'App.vue': {
                urlField: 'code',
                defaultValue: `
<template>
  <div>
    <el-row>
      <el-button size="mini" type="primary">按钮一</el-button>
      <el-button size="mini" type="success">按钮二</el-button>
      <el-button size="mini" type="info">按钮三</el-button>
      <el-button size="mini" type="warning">按钮四</el-button>
      <el-button size="mini" type="danger">按钮五</el-button>
    </el-row>
    <el-row>
      <el-tag type="primary">标签一</el-tag>
      <el-tag type="success">标签二</el-tag>
      <el-tag type="info">标签三</el-tag>
      <el-tag type="warning">标签四</el-tag>
      <el-tag type="danger">标签五</el-tag>
    </el-row>
    <el-row>
      <el-alert title="成功提示的文案" type="success"></el-alert>
      <el-alert title="消息提示的文案" type="info"></el-alert>
      <el-alert title="警告提示的文案" type="warning"></el-alert>
      <el-alert title="错误提示的文案" type="error"></el-alert>
    </el-row>
    <el-row>
      <el-badge :value="12" class="item">
        <el-button size="small">评论</el-button>
      </el-badge>
      <el-badge :value="3" class="item">
        <el-button size="small">回复</el-button>
      </el-badge>
      <el-badge :value="1" class="item" type="primary">
        <el-button size="small">评论</el-button>
      </el-badge>
      <el-badge :value="2" class="item" type="warning">
        <el-button size="small">回复</el-button>
      </el-badge>
    </el-row>
  </div>
</template>

<script>
  export default {}
<\/script>

<style>
  .el-row { margin: 15px 10px; }
  .el-row>*:not(button) { margin-right: 15px; }
  .el-alert { margin: 10px 0; }
</style>`.trim(),
            },
        },
        loaders: {
            '.vue': SandboxVueLoader
        },
        resource: {
            cssLibs: [
                'https://unpkg.com/element-ui/lib/theme-chalk/index.css'
            ],
            jsLibs: [
                'https://unpkg.com/vue@2.6.14/dist/vue.min.js',
                'https://unpkg.com/element-ui/lib/index.js',
            ],
            js: `Vue.config.productionTip = false`
        },
        defaultConfig: {
            height: '100vh'
        }
    })
</script>
</body>
</html>